package eam

/**
 * Created by Misty on 2015/6/5.
 */
class EAMTest {
    public static void main(String[] args) {
        def parent = EAMTest.classLoader
        def loader = new GroovyClassLoader(parent)
        def cp = new File("${System.getenv('JAVA_HOME')}/jre/lib/ext/jfxrt.jar")
        loader.addURL(cp.toURI().toURL())
        def file = new File("src/main/groovy/eam/EAMObject.groovy")
        def gclass = loader.parseClass(file)

        def obj = gclass.newInstance()
        println obj
        println obj.textProperty()
        obj.setText("1234")
        println obj.textProperty()
    }
}
